﻿using Exam.infranstuctrue.Dto.Request.Arrange;
using Exam.infranstuctrue.Dto.Respones;
using Exam.infranstuctrue.Tools.Attributes;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Exam.Service.Interface
{
    [IProvider]
    public interface IArrangeServer
    {
        /// <summary>
        /// 获取组织列表
        /// </summary>
        /// <param name="limit"></param>
        /// <param name="page"></param>
        /// <param name="key"></param>
        /// <param name="token"></param>
        /// <returns></returns>
        Task<ApiResult> GetArrange(int page = 1, int limit = 10, string key = "", string? token = null);
        /// <summary>
        /// 添加安排
        /// </summary>
        /// <param name="dto"></param>
        /// <returns></returns>
        Task<ApiResult> AddArrange(ArrangeDto dto);
        /// <summary>
        /// 删除安排
        /// </summary>
        /// <param name="dto"></param>
        /// <returns></returns>
        Task<ApiResult> DeleteArrange(List<ArrangeDto> dto);
        /// <summary>
        /// 获取单个安排
        /// </summary>
        /// <param name="aid"></param>
        /// <returns></returns>
        Task<ApiResult> GetEchoArrange(string aid, string? token = "");
        /// <summary>
        /// 修改安排
        /// </summary>
        /// <param name="dto"></param>
        /// <returns></returns>
        Task<ApiResult> UpdateArrange(ArrangeDto dto);
        /// <summary>
        /// 阅卷
        /// </summary>
        /// <returns></returns>
        Task<ApiResult> ReviewTestpaper(ReviewTestpaperDto dto);
    }
}
